package net.ericaro.neojavagen.blocks;

/**
 * <b>LabeledStatement</b> ::= <{@link net .ericaro .neojavagen .types .Identifier Identifier}> ":" <{@link net .ericaro .neojavagen .blocks .Statement
 * Statement}>
 * 
 * @author eric@ericaro.net
 */
public class LabeledStatement extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.blocks.Statement {
	private net.ericaro.neojavagen.types.Identifier identifier;

	private net.ericaro.neojavagen.blocks.Statement statement;

	public LabeledStatement(net.ericaro.neojavagen.types.Identifier identifier, net.ericaro.neojavagen.blocks.Statement statement) {
		super();
		this.identifier = identifier;
		this.statement = statement;
	}

	public net.ericaro.neojavagen.types.Identifier getIdentifier() {
		return identifier;
	}

	public net.ericaro.neojavagen.blocks.Statement getStatement() {
		return statement;
	}

	public void setIdentifier(net.ericaro.neojavagen.types.Identifier identifier) {
		this.identifier = identifier;
	}

	public void setStatement(net.ericaro.neojavagen.blocks.Statement statement) {
		this.statement = statement;
	}

	@Override
	public java.lang.String toString() {
		return print(identifier, ":", statement);
	}
}
